home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / Development Kits / Telephone Manager / Interfaces / TelephoneTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-18  |  6.6 KB  |  313 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        TelephoneTools.h
  3.  
  4.      Contains:    C Interface to the Telephone Manager Tools
  5.  
  6.        Version:    Technology:    System 7.5
  7.                  Package:    Telephone Manager on Mac OS SDK #4
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17. */
  18.  
  19.  
  20.  
  21. #ifndef __TELEPHONETOOLS_
  22. #define __TELEPHONETOOLS_
  23.  
  24.  
  25. #ifndef __DIALOGS__
  26. #include <Dialogs.h>
  27. #endif
  28.  
  29. #ifndef __TYPES__
  30. #include <Types.h>
  31. #endif
  32.  
  33.  
  34. #define vdefType    'vdef'        /* main telephone definition procedure    */
  35. #define vvalType    'vval'        /* validation definition procedure    */
  36. #define vsetType    'vset'        /* telephone setup definition procedure    */
  37. #define vlocType    'vloc'        /* telephone configuration localization defProc    */
  38. #define vscrType    'vscr'        /* telephone scripting defProc interfaces    */
  39.  
  40. #define vbndType    'vbnd'        /* bundle type for telephone */
  41.  
  42.  
  43. struct TELSetupStruct {
  44.     DialogPtr     theDialog;
  45.     short        count;
  46.     Ptr         theConfig;
  47.     short        procID;
  48. };
  49.  
  50. typedef struct TELSetupStruct TELSetupStruct;
  51. typedef TELSetupStruct *TELSetupPtr;
  52.  
  53. struct TELForwardPB {
  54.     StringPtr            forwardDN;
  55.     StringPtr            forwardPartyName;
  56.     StringPtr            forwardSubaddress;
  57.     short                forwardType;
  58.     short                numRings;
  59. };
  60.  
  61. typedef struct TELForwardPB TELForwardPB;
  62.  
  63.  
  64. struct TELTermMsgPB{
  65.     short                toolID;
  66.     short                tRef;
  67.     long                msg;
  68.     short                mtype;
  69.     short                value;
  70. };
  71.  
  72. typedef struct TELTermMsgPB TELTermMsgPB;
  73.  
  74. struct TELDNMsgPB {
  75.     short                toolID;
  76.     short                tRef;
  77.     short                dnRef;
  78.     long                msg;
  79.     short                mtype;
  80.     short                value;
  81.     StringPtr            rmtDN;
  82.     StringPtr            rmtName;
  83.     StringPtr            rmtSubaddress;
  84. };
  85.  
  86. typedef struct TELDNMsgPB TELDNMsgPB;
  87.  
  88. struct TELCAGenericMsgPB {
  89.     short                toolID;
  90.     short                tRef;
  91.     short                dnRef;
  92.     short                caRef;
  93.     long                msg;
  94.     short                mtype;
  95.     short                value;
  96.     StringPtr            rmtDN;
  97.     StringPtr            rmtName;
  98.     StringPtr            rmtSubaddress;
  99.     short                dialType;
  100. };
  101. typedef struct TELCAGenericMsgPB TELCAGenericMsgPB;
  102.  
  103. struct TELCADisconMsgPB {
  104.     short                toolID;
  105.     short                tRef;
  106.     short                dnRef;
  107.     short                caRef;
  108.     long                msg;
  109.     short                mtype;
  110.     short                value;
  111. };
  112. typedef struct TELCADisconMsgPB TELCADisconMsgPB;
  113.  
  114. struct TELCAConfMsgPB {
  115.     short                toolID;
  116.     short                tRef;
  117.     short                dnRef;
  118.     short                caRef;
  119.     long                msg;
  120.     short                mtype;
  121.     short                value;
  122. };
  123. typedef struct TELCAConfMsgPB TELCAConfMsgPB;
  124.  
  125. struct TELCATransfMsgPB {
  126.     short                toolID;
  127.     short                tRef;
  128.     short                dnRef;
  129.     short                caRef;
  130.     long                msg;
  131.     short                mtype;
  132.     short                value;
  133.     StringPtr            rmtDN;
  134.     StringPtr            rmtName;
  135.     StringPtr            rmtSubaddress;
  136.     short                dialType;
  137. };
  138. typedef struct TELCATransfMsgPB TELCATransfMsgPB;
  139.  
  140.  
  141. /********************************************************************************/
  142. /*  The following two message blocks are sent when the tool has outgoing call   */
  143. /*  or incoming call information, but no handle has been allocated for the call */
  144. /********************************************************************************/
  145.  
  146. /* used by tool to send CAOffer and CAAlerting messages to the Manager Master Message Handler */
  147. struct TELCAInOutMsgPB {
  148.     short                toolID;
  149.     short                tRef;
  150.     short                dnRef;
  151.     short                caRef;
  152.     long                msg;
  153.     short                mtype;
  154.     short                value;
  155.     StringPtr            rmtDN;
  156.     StringPtr            rmtName;
  157.     StringPtr            rmtSubaddress;
  158.     short                caState;
  159.     short                intExt;
  160.     short                callType;
  161.     short                dialType;
  162.     short                bearerType;
  163.     short                rate;
  164.     StringPtr            routeDN;
  165.     StringPtr            routeName;
  166.     StringPtr            routeSubaddress;
  167.     long                featureFlags;
  168.     long                otherFeatures;
  169.     long                telCAPrivate;
  170.     
  171. };
  172. typedef struct TELCAInOutMsgPB TELCAInOutMsgPB;
  173.  
  174.  
  175. typedef pascal void (*TELTermProcPtr)(Ptr pb);
  176. typedef pascal void (*TELDNProcPtr)(Ptr pb);
  177. typedef pascal void (*TELCAProcPtr)(Ptr pb);
  178.  
  179.  
  180. enum {
  181.  
  182.     telValidateMsg            = 0,
  183.     telDefaultMsg            = 1,
  184.  
  185.     telMgetMsg                = 0,
  186.     telMsetMsg                = 1,
  187.  
  188.     telSpreflightMsg        = 0,
  189.     telSsetupMsg            = 1,
  190.     telSitemMsg                = 2,
  191.     telSfilterMsg            = 3,
  192.     telScleanupMsg            = 4,
  193.  
  194.     telL2EnglishMsg            = 0,
  195.     telL2IntlMsg            = 1,
  196.  
  197.  
  198.     telNewMsg                = 0,
  199.     telDisposeMsg            = 1,
  200.     telSuspendMsg            = 2,
  201.     telResumeMsg            = 3,
  202.     telMenuMsg                = 4,
  203.     telEventMsg                = 5,
  204.     telActivateMsg            = 6,
  205.     telDeactivateMsg        = 7,
  206.  
  207.     telIdleMsg                = 50,
  208.     telOpenTermMsg            = 51,    
  209.     telResetTermMsg            = 52,
  210.     telCloseTermMsg            = 53,
  211.     telTermMsgHandMsg        = 54,
  212.     telClrTermMsgHandMsg    = 55,
  213.     telTermEventsSuppMsg    = 56,
  214.     telGetInfoMsg            = 57,    
  215.  
  216.     telCountDNsMsg            = 60,    
  217.     telDNLookupByIndexMsg     = 61,
  218.     telDNLookupByNameMsg    = 62,
  219.     telCallbackClearMsg        = 63,
  220.     telOtherFeatListMsg        = 64,
  221.     telOtherFeatImplMsg        = 65,
  222.     telToolFunctionsMsg        = 66,
  223.     telOtherFunctionMsg        = 67,
  224.  
  225.     telGetHookswMsg            = 70,
  226.     telSetHookswMsg            = 71,
  227.     telGetVolumeMsg            = 72,
  228.     telSetVolumeMsg            = 73,
  229.     telAlertMsg                = 74,
  230.     telGetDisplayMsg        = 75,
  231.     telSetDisplayMsg        = 76,
  232.  
  233.  
  234.     telDNSelectMsg            = 100,
  235.     telDNDisposeMsg            = 101,
  236.     telGetDNInfoMsg            = 102,
  237.     telGetDNFlagsMsg        = 103,
  238.     telDNMsgHandMsg            = 104,
  239.     telClrDNMsgHandMsg        = 105,
  240.     telDNEventsSuppMsg        = 106,
  241.  
  242.     telCountCAsMsg            = 110,
  243.     telCALookupMsg            = 111,
  244.     telCAMsgHandMsg            = 112,
  245.     telClrCAMsgHandMsg        = 113,
  246.     telCAEventsSuppMsg        = 114,
  247.     telSetupCallMsg            = 115,
  248.  
  249.     telForwardSetMsg        = 120,
  250.     telForwardClearMsg        = 121,
  251.     telDNDSetMsg             = 122,
  252.     telDNDClearMsg            = 123,
  253.  
  254.     telCADisposeMsg            = 200,
  255.     telGetCAStateMsg        = 201,
  256.     telGetCAFlagsMsg        = 202,
  257.     telGetCAInfoMsg            = 203,
  258.     telConnectMsg             = 204,
  259.     telDialDigitsMsg         = 205,
  260.     telAcceptCallMsg        = 206,
  261.     telRejectCallMsg        = 207,
  262.     telDeflectCallMsg        = 208,
  263.     telAnswerCallMsg        = 209,
  264.     telDropMsg                = 210,
  265.     telHoldMsg                = 211,
  266.     telRetrieveMsg            = 212,
  267.     telConfSplitMsg            = 213,
  268.     telTransfBlindMsg        = 214,
  269.     telCallbackSetMsg        = 215,
  270.     telCallbackNowMsg        = 216,
  271.     telCallPickupMsg         = 217,
  272.     telParkCallMsg             = 218,
  273.     telRetrieveParkedCallMsg= 219,
  274.     telVoiceMailAccessMsg    = 220,
  275.     telPagingMsg            = 221,
  276.     telIntercomMsg            = 222,
  277.  
  278.     telConfPrepMsg            = 230,
  279.     telConfEstMsg             = 231,
  280.     telTransfPrepMsg        = 232,
  281.     telTransfEstMsg            = 233,
  282.     
  283.     telGetDNSoundInputMsg        = 240,
  284.     telDisposeDNSoundInputMsg     = 241,
  285.     telGetDNSoundOutputMsg        = 242,
  286.     telDisposeDNSoundOutputMsg     = 243,
  287.     telGetHSSoundInputMsg        = 244,
  288.     telDisposeHSSoundInputMsg     = 245,
  289.     telGetHSSoundOutputMsg        = 246,
  290.     telDisposeHSSoundOutputMsg     = 247,
  291.     telDNSetDTMFMsg                = 248,
  292.     telDNGetDTMFMsg                = 249,
  293.     telHSSetDTMFMsg                = 250,
  294.     telHSGetDTMFMsg                = 251,
  295.     telGetDNStatusMsg            = 252,
  296.     telGetDNProgressDetMsg        = 253,
  297.     telSetDNProgressDetMsg        = 254,
  298.     
  299.     telDNSetAutoAnswerMsg        = 260,
  300.     telDNTollSaverControlMsg     = 261,
  301.     telSetIndHSConnectMsg        = 262,
  302.     telGetIndHSConnectMsg        = 263,
  303.     
  304.     telCAVoiceDetectMsg            = 270,
  305.     telCASilenceDetectMsg        = 271
  306. };
  307.  
  308.  
  309. #endif
  310.  
  311.  
  312.     
  313.